﻿@{
    ViewBag.Title = "Index2";
    Layout = "~/Views/Shared/_ManufactureList.cshtml";
}
<style type="text/css">
    .tool_c {
        padding: 10px 0;
    }

    .btn-group {
        padding: 0 10px 0 0;
    }

    .btn-group [type=radio]{
        margin:0 0.3em 0 0!important;
    }

        .btn-group:last-child a.btn:first-child {
            margin: 0 0.5em 0 0 !important;
        }


</style>
<script>
    $(function () {
        initControl();
        gridList();
        initSelect();
    });

    var defaultDate = "";

    var initSelect = function () {
        var o = {
            "1": "i31,i32,i33,34,i35,i36,i37".split(","),
            "2": "i31,i32,i38".split(","),
            "3": "i41,i42,i43,44,i45,i46,i47".split(","),
            "4": "i41,i42,i48".split(",")
        };

        $("[name=ra]").on("click", function () {
            $(".i3").hide(0);

            var arr = o[$(this).val()];

            arr.forEach(function (cur) {
                $(".{0}".format(cur)).fadeIn(100);
            });
        });

        $("[name=ra2]").on("click", function () {
            $(".i4").hide(0);

            var arr = o[$(this).val()];

            arr.forEach(function (cur) {
                $(".{0}".format(cur)).fadeIn(100);
            });
        });

        $("[name=ra]:first").trigger("click");

        $("[name=ra2]:first").trigger("click");

        $("[type=radio]").on("click", function () {
            $(this).parents(".tool_c").find(".btn-group:last a.btn:first").trigger("click");
        });

    }

    /*
    var setDefaultDate = function (start, end) {
        $.post("/Common/SetDefaultDate", { start: start, end: end, type: "Pro_CPK_A6_BB_LJRKRHZ" }, function (res) {
            console.log(res);
        }, "json");
    }

    var setDefaultDateOut = function (start, end) {
        $.post("/Common/SetDefaultDate", { start: start, end: end, type: "Pro_CPK_A7_BB_LJCKRHZ" }, function (res) {
            console.log(res);
        }, "json");
    }

    var setDefaultDateAllIn = function (start, end) {
        $.post("/Common/SetDefaultDate", { start: start, end: end, type: "Pro_CPK_A4_BB_LJRKMX" }, function (res) {
            console.log(res);
        }, "json");
    }

    var setDefaultDateAllOut = function (start, end) {
        $.post("/Common/SetDefaultDate", { start: start, end: end, type: "Pro_CPK_A5_BB_LJCKMX" }, function (res) {
            console.log(res);
        }, "json");
    }
    */
    function initControl() {
        var myLayout = $('#layout').layout({ resizeable: false });
        $('select').bindSelect();
        //来料单位名称
        $(".txt_FProductionTypeName").bindSelect({
            url: "/BaseData/ZSJ_B1_GH_SI/GetGridJson?isProduct=1",
            id: "UnitNO",
            text: "UnitNOShortName"
        });
        //领料单位名称
        $(".txt_FLCompanyName").bindSelect({
            url: "/BaseData/ZSJ_B1_GH_SI/GetGridJson?IsCustomer=1",
            id: "UnitNO",
            text: "UnitNOShortName"
        });
        //制造单位名称
        $(".txt_FProCompanyName").bindSelect({
            url: "/BaseData/ZSJ_B1_GH_SI/GetGridJson?isProduct=1",
            id: "UnitNO",
            text: "UnitNOShortName"
        });
        //显示台账日期
        var keyValue = $.request("keyValue");

        $.ajax({
            url: "/WareHouse/EnterWareHouse/GetInfoDocumentNum",
            data: { keyValue: keyValue },
            dataType: "json",
            async: false,
            success: function (data) {
                defaultDate = data;

                $("#form1").formSerialize(data);

                $(".txt_FAccountDate").val(data);
            }
        });
    

        /*
        //入库日期默认值 FTypeNum "K_8_LJRKH" 
        $.ajax({
            url: "/Common/GetDefaultDate",
            data: { FTypeNum: "K_8_LJRKH" },
            dataType: "json",
            async: false,
            success: function (data) {
                !!data[0] && (function () {
                    var str = data[0].FItemParam;

                    $("#startDate1").val(str.substr(0, 8));

                    $("#endDate1").val(str.substr(8, 8));
                })();
            }
        });
        //出库日期默认值 FTypeNum "K_8_LJCKH" 
        $.ajax({
            url: "/Common/GetDefaultDate",
            data: { FTypeNum: "K_8_LJCKH" },
            dataType: "json",
            async: false,
            success: function (data) {
                !!data[0] && (function () {
                    var str = data[0].FItemParam;

                    $("#startDate2").val(str.substr(0, 8));

                    $("#endDate2").val(str.substr(8, 8));

                })();
            }
        });
        //入库汇总查询 FTypeNum "K_N_LJRKMX"
        $.ajax({
            url: "/Common/GetDefaultDate",
            data: { FTypeNum: "K_N_LJRKMX" },
            dataType: "json",
            async: false,
            success: function (data) {
                !!data[0] && (function () {
                    var str = data[0].FItemParam;

                    $("#startDate7").val(str.substr(0, 8));

                    $("#endDate7").val(str.substr(8, 8));

                })();
            }
        });
        //出库汇总查询 FTypeNum "K_H_LJCKJG"
        */
        $.ajax({
            url: "/Common/GetDefaultDate",
            data: { FTypeNum: "K_H_LJCKJG" },
            dataType: "json",
            async: false,
            success: function (data) {
                !!data[0] && (function () {
                    var str = data[0].FItemParam;

                    $("#startDate8").val(str.substr(0, 8));

                    $("#endDate8").val(str.substr(8, 8));

                })();
            }
        });
        //零件分类
        $(".txt_FTypeName").bindSelect({//FClassNO ='01'
            url: "/VBaseData/V_BUS_SJ_Dictionary/GetSJ_DictionaryEntity",
            id: "FTypeNO",
            text: "UnitTypeNoName",
        });
        //来料查询
        $("#butnInStoreSearch").on("click", function () {
            var $gridList5 = $("#gridList5");

            $gridList5.jqGrid('setGridParam', {
                postData: { unit: $("#txt_FProCompanyName5").val(), date: $("#txt_FAccountDate5").val(), isCurrent: defaultDate == $("#txt_FAccountDate5").val(), type: parseInt($("[name=ra50]:checked").val(), 10) },
            }).trigger('reloadGrid');
        });
        //领料查询
        $("#butnOutStoreSearch").on("click", function () {
            var $gridList6 = $("#gridList6");

            $gridList6.jqGrid('setGridParam', {
                postData: { unit: $("#txt_FLCompanyName6").val(), date: $("#txt_FAccountDate6").val(), isCurrent: defaultDate == $("#txt_FAccountDate6").val(), type: parseInt($("[name=ra60]:checked").val(), 10) },
            }).trigger('reloadGrid');
        });
        //价格调整查询butnSearch10
        $("#butnSearch10").on("click", function () {
            var $gridList10 = $("#gridList10");

            var conn10 = {
                fAccountDate: $("#txt_FAccountDate10").val(),
                dwbz: $("[name=ra90]:checked").val(),
                FProductionNO: $("#FProductionNO10").val(),
                FProductionName: $("#FProductionName10").val(),
                FProCompanyNO: $("#FProCompanyNO10").val(),
                FProductionTypeNO: $("#FProductionTypeName10").val(),
                isCurrent: defaultDate == $("#txt_FAccountDate10").val()
            };

            $gridList10.jqGrid('setGridParam', {
                postData: conn10,
            }).trigger('reloadGrid');
        });
        //入库统计查询butnSearch3
        $("#butnSearch3").on("click", function () {
            var val = $("[name=ra]:checked").val();

            1 == val && (function () {
                var $gridList3 = $("#gridList3");

                var conn3 = {
                    fAccountDate: $("#txt_FAccountDate3").val(),
                    FHappenComName: $("#txtFHappenComName3").val(),
                    FProductionNO: $("#FProductionNO3").val(),
                    FProductionName: $("#FProductionName3").val(),
                    FProCompanyNO: $("#FProCompanyNO3").val(),
                    FProductionTypeNO: $("#FProductionTypeNO3").val(),
                    isCurrent: defaultDate == $("#txt_FAccountDate3").val()
                };

                $gridList3.jqGrid('setGridParam', {
                    postData: conn3,
                }).trigger('reloadGrid');
            })();

            2 == val && (function () {
                var $gridList31 = $("#gridList31");

                var conn31 = {
                    fAccountDate: $("#txt_FAccountDate3").val(),
                    FHappenComNO: $("#txtFHappenComName3").val(),
                    isCurrent: defaultDate == $("#txt_FAccountDate3").val()
                };

                $gridList31.jqGrid('setGridParam', {
                    postData: conn31,
                }).trigger('reloadGrid');
            })();

        });
        //销售统计查询butnSearch4
        $("#butnSearch4").on("click", function () {
            var val = $("[name=ra2]:checked").val();

            3 == val && (function () {
                var $gridList4 = $("#gridList4");

                var conn4 = {
                    fAccountDate: $("#txt_FAccountDate4").val(),
                    FHappenComNO: $("#txtFHappenComName4").val(),
                    FProductionNO: $("#FProductionNO4").val(),
                    FProductionName: $("#FProductionName4").val(),
                    FProCompanyNO: $("#FProCompanyNO4").val(),
                    FProductionTypeNO: $("#FProductionTypeNO4").val(),
                    isCurrent: defaultDate == $("#txt_FAccountDate4").val()
                };

                $gridList4.jqGrid('setGridParam', {
                    postData: conn4,
                }).trigger('reloadGrid');
            })();

            4 == val && (function () {
                var $gridList41 = $("#gridList41");

                var conn41 = {
                    fAccountDate: $("#txt_FAccountDate4").val(),
                    FHappenComNO: $("#txtFHappenComName4").val(),
                    isCurrent: defaultDate == $("#txt_FAccountDate4").val()
                };

                $gridList41.jqGrid('setGridParam', {
                    postData: conn41,
                }).trigger('reloadGrid');
            })();
        });
        //入库日汇总查询btnSearch1
        $("#btnSearch1").on("click", function () {
            // setDefaultDate($("#startDate1").val(), $("#endDate1").val())

            var $gridList1 = $("#gridList1");
            //ManufactureLine startDate1 endDate1 txtFHappenComName1
            var conn1 = {
                ManufactureLine: $("[name=ra0]:checked").val(),
                startDate: $("#startDate1").val(),
                endDate: $("#endDate1").val(),
                FHappenComNO: $("#txtFHappenComName1").val()
            };

            $gridList1.jqGrid('setGridParam', {
                postData: conn1,
            }).trigger('reloadGrid');
        });
        //出库日汇总查询btnSearch2
        $("#btnSearch2").on("click", function () {
            // setDefaultDateOut($("#startDate2").val(), $("#endDate2").val())

            var $gridList2 = $("#gridList2");
            //ManufactureLine startDate1 endDate1 txtFHappenComName1
            var conn2 = {
                ManufactureLine: $("[name=ra10]:checked").val(),
                startDate: $("#startDate2").val(),
                endDate: $("#endDate2").val(),
                FHappenComNO: $("#txtFHappenComName2").val()
            };

            $gridList2.jqGrid('setGridParam', {
                postData: conn2,
            }).trigger('reloadGrid');
        });

        //入库汇总查询btnSearch7
        $("#btnSearch7").on("click", function () {
            // setDefaultDateAllIn($("#startDate7").val(), $("#endDate7").val())

            var $gridList7 = $("#gridList7");
            //ManufactureLine startDate1 endDate1 txtFHappenComName1
            var conn7 = {
                ManufactureLine: $("[name=ra70]:checked").val(),
                startDate: $("#startDate7").val(),
                endDate: $("#endDate7").val(),
                FHappenComNO: $("#txtFHappenComName7").val(),
                FProductionTypeNO: $("#FProductionTypeNO7").val(),
                FProCompanyNO: $("#FProCompanyNO7").val(),
                FProductionName: $("#FProductionName7").val(),
                FProductionNO: $("#FProductionNO7").val(),
            };

            $gridList7.jqGrid('setGridParam', {
                postData: conn7,
            }).trigger('reloadGrid');
        });
        //出库汇总查询btnSearch8
        $("#btnSearch8").on("click", function () {
            // setDefaultDateAllOut($("#startDate8").val(), $("#endDate8").val())

            var $gridList8 = $("#gridList8");
            //ManufactureLine startDate1 endDate1 txtFHappenComName1
            var conn8 = {
                ManufactureLine: $("[name=ra80]:checked").val(),
                startDate: $("#startDate8").val(),
                endDate: $("#endDate8").val(),
                FHappenComNO: $("#txtFHappenComName8").val(),
                FProductionTypeNO: $("#FProductionTypeNO8").val(),
                FProCompanyNO: $("#FProCompanyNO8").val(),
                FProductionName: $("#FProductionName8").val(),
                FProductionNO: $("#FProductionNO8").val()
            };

            $gridList8.jqGrid('setGridParam', {
                postData: conn8
            }).trigger('reloadGrid');
        });

        var str = defaultDate.toString();

        var y = parseInt(str.substr(0, 4), 10);

        var m = parseInt(str.substr(4, 2), 10);

        $(".startdate").val("{0}01".format(str));

        $(".enddate").val(new Date(y, m - 1, getMaxDay(y, m)).format("yyyyMMdd"));
    }

    var getMaxDay = function (y, m) {
        var now = new Date();
        var r = 31, sec = [4, 6, 9, 11], today = now.getDate();
        //能被4整除但不能被100整除，或能被400整除的年份
        2 == m && (r = (((0 == y % 4 && 0 != y % 100) || 0 == y % 400) ? 29 : 28));

        sec.indexOf(m) && (m = 30);

        y == now.getFullYear() && m == (now.getMonth() + 1) && (r = today);

        return r;
    }

    function gridList() {
        var conn1 = {
            ManufactureLine: $("[name=ra0]:checked").val(),
            startDate: $("#startDate1").val(),
            endDate: $("#endDate1").val(),
            FHappenComNO: $("#txtFHappenComName1").val()
        };
        var $gridList1 = $("#gridList1");
        $gridList1.dataGridForJson({
            url: "/VBaseData/V_CPK_A1_BB_StoProStockCata_RB/GetGridInstockBill",
            postData: conn1,
            height: $(window).height() - 220,
            colModel: [
                { label: '来料单位', name: 'FHappenComNO', width: 120, align: 'center' },
                { label: '来料单位名称', name: 'FHappenComName', width: 240, align: 'left'},
                { label: '入库日期汇总数量', name: 'FQuantity', width: 160, align: 'right', sortable: false },
                { label: '入库日期汇总金额(元)', name: 'Fmoney', width: 160, align: 'right', formatter: 'number', sortable: false },
                { label: ' ', name: ' ', width: ($(window).width() - 920), align: 'left', sortable: false }
            ],
            pager: "#gridPager1",
            sortname: 'FHappenComNO',
            sortorder:"asc",
            rownumWidth: 50
        });
        var conn2 = {
            ManufactureLine: $("[name=ra10]:checked").val(),
            startDate: $("#startDate2").val(),
            endDate: $("#endDate2").val(),
            FHappenComNO: $("#txtFHappenComName2").val()
        };
        var $gridList2 = $("#gridList2");
        $gridList2.dataGridForJson({
            url: "/VBaseData/V_CPK_A1_BB_StoProStockCata_RB/GetGridOutstockBill",
            postData: conn2,
            height: $(window).height() - 220,
            colModel: [
            { label: '领料单位', name: 'FHappenComNO', width: 120, align: 'center' },
            { label: '领料单位名称', name: 'FHappenComName', width: 240, align: 'left' },
            { label: "出库日期汇总数量", name: "FQuantity", width: 180, align: 'right' },
            { label: '出库日期汇总金额(元)', name: 'Fmoney', width: 180, formatter: 'number', align: 'right' },
            { label: ' ', name: ' ', width: ($(window).width() - 800), align: 'left', sortable: false }
            ],
            pager: "#gridPager2",
            sortname: 'FHappenComNO',
            sortorder:"asc",
            viewrecords: true,
            rownumWidth: 50,
            onSelectRow: function (rowId) {
                rowData = $gridList.jqGrid('getRowData', rowId);
                index = rowId;
                $.each(rowData, function (key, value) {
                    $("#txt" + key).val(value);
                });
            }
        });

        var $gridList3 = $("#gridList3");
        //fAccountDate, string FHappenComName, string FProductionNO, string FProductionName, string FProCompanyNO,bool isCurrent
        var conn3 = {
            fAccountDate: $("#txt_FAccountDate3").val(),
            FHappenComNO: $("#txtFHappenComName3").val(),
            FProductionNO: $("#FProductionNO3").val(),
            FProductionName: $("#FProductionName3").val(),
            FProCompanyNO: $("#FProCompanyNO3").val(),
            FProductionTypeNO: $("#FProductionTypeNO3").val(),
            isCurrent: defaultDate == $("#txt_FAccountDate3").val()
        };

        $gridList3.dataGridForJson({
            url: "/VBaseData/V_CPK_A1_BB_StoProStockCata_RB/GetGridJsonInstoreStat",
            height: $(window).height() - 220,
            postData: conn3,
            colModel: [
            { label: '来料单位', name: 'FHappenComNO', width: 120, align: 'center' },
            { label: '来料单位名称', name: 'FHappenComName', width: 200, align: 'left', sortable: false },
            { label: '零件编号', name: 'FProductionNO', width: 120, align: 'left', sortable: false },
            { label: '零件名称', name: 'FProductionName', width: 200, align: 'left', sortable: false },
            { label: '来料数量', name: 'FQuantity', width: 100, align: 'right', sortable: false },
            { label: '计划单价', name: 'FPrice_X', width: 100, align: 'right', formatter: 'number', sortable: false },
            { label: '计划金额', name: 'FMoneyJH', width: 100, align: 'right', formatter: 'number', sortable: false },
            { label: '核算单价', name: 'FPrice', width: 100, align: 'right', formatter: 'number', sortable: false },
            { label: '核算金额', name: 'FMoneyJS', width: 100, align: 'right', formatter: 'number', sortable: false },
            { label: '制造单位', name: 'FProCompanyNO', width: 120, align: 'center', sortable: false },
            { label: '制造单位名称', name: 'FProCompanyName', width: 200, align: 'left', sortable: false },
            { label: '零件分类', name: 'FProductionTypeName', width: 120, align: 'center', sortable: false },
            { label: ' ', name: ' ', width: ($(window).width() - 1660), align: 'left', sortable: false }
            ],
            pager: "#gridPager3",
            sortname: 'UseUnit,FAccountDate,FHappenComNO,FProductionNO,FProCompanyNO',
            sortorder:"asc",
            viewrecords: true,
            rownumWidth: 50,
            onSelectRow: function (rowId) {
                rowData = $gridList.jqGrid('getRowData', rowId);
                index = rowId;
                $.each(rowData, function (key, value) {
                    $("#txt" + key).val(value);
                });
            }
        });

        var $gridList31 = $("#gridList31");
        //fAccountDate, string FHappenComName, string FProductionNO, string FProductionName, string FProCompanyNO,bool isCurrent
        var conn31 = {
            fAccountDate: $("#txt_FAccountDate3").val(),
            FHappenComNO: $("#txtFHappenComName3").val(),
            isCurrent: defaultDate == $("#txt_FAccountDate3").val()
        };

        $gridList31.dataGridForJson({
            url: "/VBaseData/V_CPK_A1_BB_StoProStockCata_RB/GetGridJsonInstoreStatT",
            height: $(window).height() - 220,
            postData: conn31,
            colModel: [
            { label: '来料单位', name: 'FHappenComNO', width: 120, align: 'center'},
            { label: '来料单位名称', name: 'FHappenComName', width: 200, align: 'left', sortable: false },
            { label: '本月数量', name: 'FQuantity', width: 120, align: 'right', sortable: false },
            { label: '本月计划金额', name: 'FMoney_JH', width: 120, align: 'right', formatter: 'number', sortable: false },
            { label: '本月结算金额', name: 'FMoney_JS', width: 120, align: 'right', formatter: 'number', sortable: false },
            { label: ' ', name: ' ', width: ($(window).width() - 760), align: 'left', sortable: false }
            ],
            pager: "#gridPager31",
            sortname: 'FHappenComNO',
            sortorder:"asc",
            viewrecords: true,
            rownumWidth: 50,
            onSelectRow: function (rowId) {
                rowData = $gridList.jqGrid('getRowData', rowId);
                index = rowId;
                $.each(rowData, function (key, value) {
                    $("#txt" + key).val(value);
                });
            }
        });
        var $gridList4 = $("#gridList4");
        //fAccountDate, string FHappenComNO, string FProductionNO, string FProductionName, string FProCompanyNO, string FProductionTypeNO, bool isCurrent
        var conn4 = {
            fAccountDate: $("#txt_FAccountDate4").val(),
            FHappenComNO: $("#txtFHappenComName4").val(),
            FProductionNO: $("#FProductionNO4").val(),
            FProductionName: $("#FProductionName4").val(),
            FProCompanyNO: $("#FProCompanyNO4").val(),
            FProductionTypeNO: $("#FProductionTypeNO4").val(),
            isCurrent: defaultDate == $("#txt_FAccountDate4").val()
        };
        $gridList4.dataGridForJson({
            url: "/VBaseData/V_CPK_A1_BB_StoProStockCata_RB/GetGridJsonSalesStat",
            height: $(window).height() - 200,
            postData: conn4,
            colModel: [
                { label: '销售单位', name: 'FHappenComNO', width: 120, align: 'center'},
                { label: '销售单位名称', name: 'FHappenComName', width: 160, align: 'left', sortable: false },
                { label: '零件编号', name: 'FProductionNO', width: 120, align: 'left', sortable: false },
                { label: '零件名称', name: 'FProductionName', width: 160, align: 'left', sortable: false },
                { label: '销售数量', name: 'FQuantity', width: 100, align: 'right', sortable: false },
                { label: '计划单价', name: 'Fprice_X', width: 100, formatter: 'number', align: 'right', sortable: false },
                { label: '计划金额', name: 'FMoneyJH', width: 100, formatter: 'number', align: 'right', sortable: false },
                { label: '销售单价', name: 'Fprice', width: 100, align: 'right', formatter: 'number', sortable: false },
                { label: '销售金额', name: 'FMoneyJS', width: 100, align: 'right', formatter: 'number', sortable: false },
                { label: '制造单位', name: 'FProCompanyNO', width: 100, align: 'center', sortable: false },
                { label: '制造单位名称', name: 'FProCompanyName', width: 180, align: 'left', sortable: false },
                { label: '零件分类', name: 'FProductionTypeName', width: 120, align: 'center', sortable: false },
                { label: ' ', name: ' ', width: ($(window).width() - 1560), align: 'left', sortable: false }
            ],
            pager: "#gridPager4",
            sortname: ' UseUnit,FAccountDate,FHappenComNO,FProductionNO,FProCompanyNO',
            sortorder:"asc",
            viewrecords: true,
            rownumWidth: 50,
            onSelectRow: function (rowId) {
                rowData = $gridList.jqGrid('getRowData', rowId);
                index = rowId;
                $.each(rowData, function (key, value) {
                    $("#txt" + key).val(value);
                });
            }
        });

        var $gridList41 = $("#gridList41");
        //fAccountDate, string FHappenComNO, string FProductionNO, string FProductionName, string FProCompanyNO, string FProductionTypeNO, bool isCurrent
        var conn41 = {
            fAccountDate: $("#txt_FAccountDate4").val(),
            FHappenComNO: $("#txtFHappenComName4").val(),
            isCurrent: defaultDate == $("#txt_FAccountDate4").val()
        };
        $gridList41.dataGridForJson({
            url: "/VBaseData/V_CPK_A1_BB_StoProStockCata_RB/GetGridJsonSalesStatT",
            height: $(window).height() - 200,
            postData: conn41,
            colModel: [
                { label: '销售单位', name: 'FHappenComNO', width: 120, align: 'center' },
                { label: '销售单位名称', name: 'FHappenComName', width: 160, align: 'left', sortable: false },
                { label: '本月数量', name: 'FQuantity', width: 120, align: 'right', sortable: false },
                { label: '本月计划金额', name: 'FMoney_JH', width: 120, align: 'right', formatter: 'number', sortable: false },
                { label: '本月结算金额', name: 'FMoney_JS', width: 120, align: 'right', formatter: 'number', sortable: false },
                { label: ' ', name: ' ', width: ($(window).width() - 760), align: 'left', sortable: false }
            ],
            pager: "#gridPager41",
            sortname: 'FHappenComNO',
            sortorder:"asc",
            viewrecords: true,
            rownumWidth: 50,
            onSelectRow: function (rowId) {
                rowData = $gridList.jqGrid('getRowData', rowId);
                index = rowId;
                $.each(rowData, function (key, value) {
                    $("#txt" + key).val(value);
                });
            }
        });

        var conn5 = {
            unit: $("#txt_FProCompanyName5").val(),
            date: $("#txt_FAccountDate5").val(),
            isCurrent: defaultDate == $("#txt_FAccountDate5").val(),
            type: $("[name=ra50]:checked").val()
        };

        var $gridList5 = $("#gridList5");
        $gridList5.dataGridForJson({
            url: "/VBaseData/V_CPK_44_MX_StoCPKListAcco_Mid_MX/GetGridJson",
            postData: conn5,
            height: $(window).height() - 200,
            colModel: [
            { label: '来料单位', name: '来料单位名称', width: 220, align: 'left' },
            { label: '入库数量', name: '入库数量', width: 140, align: 'right', sortable: false },
            { label: '入库金额(元)', name: '入库金额', width: 140, align: 'right', formatter: "number", formatoptions: { thousandsSeparator: ".", defaulValue: "", decimalPlaces: 2 }, sortable: false },
             { label: ' ', name: ' ', width: ($(window).width() - 580), align: 'left', sortable: false },
            ],
            pager: "#gridPager5",
            sortname: 'UseUnit',
            sortorder:"asc",
            viewrecords: true,
            rownumWidth: 50,
            onSelectRow: function (rowId) {
                rowData = $gridList.jqGrid('getRowData', rowId);
                index = rowId;
                $.each(rowData, function (key, value) {
                    $("#txt" + key).val(value);
                });
            }
        });


        var conn6 = {
            unit: $("#txt_FLCompanyName6").val(),
            date: $("#txt_FAccountDate6").val(),
            isCurrent: defaultDate == $("#txt_FAccountDate6").val(),
            type: $("[name=ra60]:checked").val()
        };

        var $gridList6 = $("#gridList6");
        $gridList6.dataGridForJson({
            url: "/VBaseData/V_CPK_44_MX_StoCPKListAcco_Mid_MX/GetGridJsonOut",
            postData: conn6,
            height: $(window).height() - 200,
            colModel: [
            { label: '领料单位', name: '领料单位名称', width: 220, align: 'left', sortable: false },
            { label: '发出数量', name: '发出数量', width: 140, align: 'right', sortable: false },
            { label: '发出金额(元)', name: '发出金额', width: 140, align: 'right', formatter: "number", formatoptions: { thousandsSeparator: ".", defaulValue: "", decimalPlaces: 2 }, sortable: false },
            { label: ' ', name: ' ', width: ($(window).width() - 590), align: 'left', sortable: false }
            ],
            pager: "#gridPager6",
            sortname: 'FProductionNO',
            sortorder:"asc",
            viewrecords: true,
            rownumWidth: 50,
            onSelectRow: function (rowId) {
                rowData = $gridList.jqGrid('getRowData', rowId);
                index = rowId;
                $.each(rowData, function (key, value) {
                    $("#txt" + key).val(value);
                });
            }
        });
        //FProductionTypeNO7 FProCompanyNO7 FProductionName7 FProductionNO7
        var conn7 = {
            ManufactureLine: $("[name=ra70]:checked").val(),
            startDate: $("#startDate7").val(),
            endDate: $("#endDate7").val(),
            FHappenComNO: $("#txtFHappenComName7").val(),
            FProductionTypeNO: $("#FProductionTypeNO7").val(),
            FProCompanyNO: $("#FProCompanyNO7").val(),
            FProductionName: $("#FProductionName7").val(),
            FProductionNO: $("#FProductionNO7").val(),
        };

        var $gridList7 = $("#gridList7");
        $gridList7.dataGridForJson({
            url: "/VBaseData/V_CPK_A1_BB_StoProStockCata_RB/GetGridJsonInStockTotal",
            postData: conn7,
            height: $(window).height() - 220,
            colModel: [
            { label: '来料单位', name: 'FHappenComNO', width: 120, align: 'left' },
            { label: '来料单位名称', name: 'FHappenComName', width: 180, align: 'left', sortable: false },
            { label: '零件编号', name: 'FProductionNO', width: 120, align: 'left', sortable: false },
            { label: '零件名称', name: 'FProductionName', width: 180, align: 'left', sortable: false },
            { label: '入库数量', name: 'FQuantity', width: 100, align: 'right', sortable: false },
            { label: '计划单价(元)', name: 'FPrice', width: 100, align: 'right', formatter: "number", sortable: false },
            { label: '入库金额(元)', name: 'Fmoney', width: 100, align: 'right', formatter: "number", sortable: false },
            { label: '制造单位', name: 'FProCompanyNO', width: 100, align: 'center', sortable: false },
            { label: '制造单位名称', name: 'FProCompanyName', width: 180, align: 'left', sortable: false },
            { label: '零件分类', name: 'FProductionTypeName', width: 100, align: 'center', sortable: false },
            { label: ' ', name: ' ', width: ($(window).width() - 1360), align: 'left', sortable: false }
            ],
            pager: "#gridPager7",
            sortname: 'FHappenComNO,FProductionNO,FProCompanyNO',
            sortorder:"asc",
            viewrecords: true,
            rownumWidth: 50,
            onSelectRow: function (rowId) {
                rowData = $gridList.jqGrid('getRowData', rowId);
                index = rowId;
                $.each(rowData, function (key, value) {
                    $("#txt" + key).val(value);
                });
            }
        });
        var conn8 = {
            ManufactureLine: $("[name=ra80]:checked").val(),
            startDate: $("#startDate8").val(),
            endDate: $("#endDate8").val(),
            FHappenComNO: $("#txtFHappenComName8").val(),
            FProductionTypeNO: $("#FProductionTypeNO8").val(),
            FProCompanyNO: $("#FProCompanyNO8").val(),
            FProductionName: $("#FProductionName8").val(),
            FProductionNO: $("#FProductionNO8").val()
        };
        var $gridList8 = $("#gridList8");//10冲压件成品库出库汇总明细表

        $gridList8.dataGridForJson({
            url: "/VBaseData/V_CPK_A1_BB_StoProStockCata_RB/GetGridJsonOutStockTotal",
            postData: conn8,
            height: $(window).height() - 220,
            colModel: [
                { label: '领料单位', name: 'FHappenComNO', width: 120, align: 'center' },
                { label: '领料单位名称', name: 'FHappenComName', width: 180, align: 'left', sortable: false },
                { label: '零件编号', name: 'FProductionNO', width: 120, align: 'left', sortable: false },
                { label: '零件名称', name: 'FProductionName', width: 180, align: 'left', sortable: false },
                { label: '出库数量', name: 'FQuantity', width: 100, align: 'right', sortable: false },
                { label: '计划单价(元)', name: 'FPrice_JH', width: 100, align: 'right', formatter: "number", sortable: false },
                { label: '计划金额(元)', name: 'FMoney_JH', width: 100, align: 'right', formatter: "number", sortable: false },
                { label: '销售单价(元)', name: 'FPrice_JS', width: 100, align: 'right', formatter: "number", sortable: false },
                { label: '销售金额(元)', name: 'FMoney_JS', width: 100, align: 'right', formatter: "number", sortable: false },
                { label: '制造单位', name: 'FProCompanyNO', width: 120, align: 'center', sortable: false },
                { label: '制造单位名称', name: 'FProCompanyName', width: 180, align: 'left', sortable: false },
                { label: '零件分类', name: 'FProductionTypeName', width: 100, align: 'center', sortable: false },
                { label: ' ', name: ' ', width: ($(window).width() - 1600), align: 'left', sortable: false }
            ],
            pager: "#gridPager8",
            sortname: 'FHappenComNO,FProductionNO,FProCompanyNO',
            sortorder:"asc",
            rownumWidth: 50,
        });

        var conn10 = {
            fAccountDate: $("#txt_FAccountDate10").val(),
            dwbz: $("[name=ra90]:checked").val(),
            FProductionNO: $("#FProductionNO10").val(),
            FProductionName: $("#FProductionName10").val(),
            FProCompanyNO: $("#FProCompanyNO10").val(),
            FProductionTypeNO: $("#FProductionTypeName10").val(),
            isCurrent: defaultDate == $("#txt_FAccountDate10").val()
        };

        var $gridList10 = $("#gridList10");
        $gridList10.dataGridForJson({
            url: "/VBaseData/V_CPK_A1_BB_StoProStockCata_RB/GetGridJsonPrice",
            postData: conn10,
            height: $(window).height() - 220,
            colModel: [
                { label: '零件编号', name: 'FProductionNO', width: 120, align: 'left'},
                { label: '零件名称', name: 'FProductionName', width: 180, align: 'left', sortable: false },
                { label: '调整数量', name: 'FQuantity', width: 100, align: 'right', sortable: false },
                { label: '原单价<br/>(元)', name: 'FPrice_QC', width: 100, align: 'right', formatter: 'number', sortable: false },
                { label: '现单价<br/>（元）', name: 'Fprice_X', width: 100, align: 'right', formatter: 'number', sortable: false },
                { label: '单价差额<br/>（元）', name: 'Fprice_TZ', width: 100, align: 'right', formatter: 'number', sortable: false },
                { label: '调整金额<br/>（元）', name: 'Fmoney', width: 100, align: 'right', formatter: 'number', sortable: false },
                { label: '制造单位', name: 'FProCompanyNO', width: 120, align: 'center', sortable: false },
                { label: '制造单位名称', name: 'FProCompanyName', width: 180, align: 'left', sortable: false },
                { label: '零件分类', name: 'FProductionTypeName', width: 100, align: 'center', sortable: false },
                { label: '', name: '', width: $(window).width() - 1270, align: 'left', sortable: false }
            ],
            pager: "#gridPager10",
            sortname: 'dwbz',
            sortorder:"asc",
            rownumWidth: 50,
        });
    }
</script>
<div class="layout" id="layout" style="height: 100%; width: 100%;">
    <div id="showTable" class="ui-layout-center ">
        <div style="padding: 5px 5px;" class="line-table">
            <ul id="myTab" class="nav nav-tabs" style="">
                <li class="active"><a href="#InputDayInfoInfo" data-toggle="tab">入库日汇总</a></li>
                <li><a href="#OutDayInfoInfo" data-toggle="tab">出库日汇总</a></li>
                <li><a href="#InputStatisticsInfo" data-toggle="tab">入库统计</a></li>
                <li><a href="#SaleStatisticsInfo" data-toggle="tab">销售统计</a></li>
                <li><a href="#InputInfoInfo" data-toggle="tab">来料单位汇总</a></li>
                <li><a href="#OutInfoInfo" data-toggle="tab">领料单位汇总</a></li>
                <li><a href="#InputAllInfoInfo" data-toggle="tab">入库汇总</a></li>
                <li><a href="#OutAllInfoInfo" data-toggle="tab">出库汇总</a></li>
                <li><a href="#PriceInfoInfo" data-toggle="tab">价格调整</a></li>
            </ul>
            <div id="myTabContent" class="tab-content" style="margin-top: 5px;">
                <div class="tab-pane fade in active" id="InputDayInfoInfo">
                    <div class="tool_c">
                        <div class="btn-group">
                            <input type="radio" id="ra01" value="0" name="ra0" checked="checked" /><label for="ra01">自制</label><br />
                            <input type="radio" id="ra02" value="1" name="ra0" /><label for="ra02">	外协</label><br />
                        </div>
                        <div class="btn-group input-width-80">
                            <div>&nbsp;入库日期汇总</div>
                            <input id="startDate1" name="" placeholder="" type="text" class="form-control required startdate" onfocus="WdatePicker({ dateFmt: 'yyyyMMdd'});" />
                            到
                        <input id="endDate1" name="" placeholder="" type="text" class="form-control required enddate" onfocus="WdatePicker({ dateFmt: 'yyyyMMdd'});" />
                        </div>
                        <div class="btn-group">
                            <div class="input-width-185">
                                &nbsp;来料单位<br />
                                <select class="txt_FProductionTypeName" id="txtFHappenComName1" name="">
                                    <option value="">==请选择==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group">
                            <a id="btnSearch1" class="btn btn-primary center-block"><span class="glyphicon glyphicon-search"></span>查询</a>
                            <a class="btn btn-primary center-block" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span>&nbsp刷新</a>
                            <a class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-refresh"></span>&nbsp计算</a>
                            <a class="btn btn-primary center-block" onclick="btn_Print()"><span class="glyphicon glyphicon-print"></span>&nbsp打印</a>
                            <a class="btn btn-primary center-block" onclick="btn_Excel()"><span class="glyphicon glyphicon-download"></span>&nbsp导出</a>
                        </div>
                    </div>
                    <div style="margin-top: 5px;">
                        <table id="gridList1"></table>
                        <div id="gridPager1"></div>
                    </div>
                </div>
                <div class="tab-pane fade" id="OutDayInfoInfo">
                    <div class="tool_c">
                        <div class="btn-group">
                            <input type="radio" id="ra101" value="0" name="ra10" checked="checked" /><label for="ra101">自制</label><br />
                            <input type="radio" id="ra102" value="1" name="ra10" /><label for="ra102">	外协</label><br />
                        </div>
                        <div class="btn-group input-width-80">
                            <div>&nbsp;出库日期汇总</div>
                            <input id="startDate2" name="" placeholder="" type="text" class="form-control required startdate" onfocus="WdatePicker({ dateFmt: 'yyyyMMdd'});" />
                            到
                        <input id="endDate2" name="" placeholder="" type="text" class="form-control required enddate" onfocus="WdatePicker({ dateFmt: 'yyyyMMdd'});" />
                        </div>
                        <div class="btn-group">
                            <div class="input-width-185">
                                &nbsp;领料单位<br />
                                <select class="txt_FLCompanyName" id="txtFHappenComName2" name="">
                                    <option value="">==请选择==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group">
                            <a id="btnSearch2" class="btn btn-primary center-block"><span class="glyphicon glyphicon-search"></span>&nbsp; 查询</a>
                            <a class="btn btn-primary center-block" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span>&nbsp刷新</a>
                            <a class="btn btn-primary center-block" onclick="btn_Print()"><span class="glyphicon glyphicon-print"></span>&nbsp打印</a>
                            <a class="btn btn-primary center-block" onclick="btn_Excel()"><span class="glyphicon glyphicon-download"></span>&nbsp导出</a>
                        </div>
                    </div>
                    <div style="margin-top: 5px;">
                        <table id="gridList2"></table>
                        <div id="gridPager2"></div>
                    </div>
                </div>
                <div class="tab-pane fade" id="InputStatisticsInfo">
                    <div class="tool_c">
                        <div class="btn-group">
                            <input type="radio" id="ra2" value="2" name="ra" checked="checked" /><label for="ra2">	单位汇总</label><br />
                            <input type="radio" id="ra1" value="1" name="ra" /><label for="ra1">零件汇总</label><br />
                        </div>
                        <div class="btn-group i3 i31 ">
                            &nbsp;台账日期<br />
                            <input id="txt_FAccountDate3" name="" placeholder="" type="text" class="form-control txt_FAccountDate required input-width-80" onfocus="WdatePicker({ dateFmt: 'yyyyMM', isShowToday: false, isShowClear: false });" />
                        </div>
                        <div class="btn-group i3 i32">
                            <div class="input-width-185">
                                &nbsp;来料单位<br />
                                <select class="txt_FProductionTypeName" id="txtFHappenComName3" name="">
                                    <option value="">==请选择==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group i3 i33">
                            &nbsp;零件编号<br />
                            <input id="FProductionNO3" name="" placeholder="" type="text" class="form-control required input-width-105" />
                        </div>
                        <div class="btn-group i3 i34">
                            &nbsp;零件名称<br />
                            <input id="FProductionName3" name="" placeholder="" type="text" class="form-control required input-width-140" />
                        </div>
                        <div class="btn-group input-width-185 i3 i35" style="margin-top: 0px;">
                            <div>
                                &nbsp; 制造单位<br />
                                <select class="txt_FProCompanyName" id="FProCompanyNO3" name="">
                                    <option value="">==请选择==</option>
                                </select>
                                &nbsp;
                            </div>
                        </div>
                        <div class="btn-group i3 i36">
                            <div class="input-width-105">
                                &nbsp;零件分类<br />
                                <select class="txt_FTypeName" id="FProductionTypeNO3" name="">
                                    <option value="" style="width: 80px;">==请选择==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group">
                            <a id="butnSearch3" class="btn btn-primary center-block"><span class="glyphicon glyphicon-search"></span>&nbsp; 查询</a>
                            <a class="btn btn-primary center-block" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span>&nbsp刷新</a>
                            <a class="btn btn-primary center-block" onclick="btn_Print()"><span class="glyphicon glyphicon-print"></span>&nbsp打印</a>
                            <a class="btn btn-primary center-block" onclick="btn_Excel()"><span class="glyphicon glyphicon-download"></span>&nbsp导出</a>

                        </div>
                    </div>
                    <div style="margin-top: 5px;">
                        <div class="i3 i37">
                            <table id="gridList3"></table>
                            <div id="gridPager3"></div>
                        </div>
                        <div class="i3 i38">
                            <table id="gridList31"></table>
                            <div id="gridPager31"></div>
                        </div>
                    </div>
                </div>
                <div class="tab-pane fade" id="SaleStatisticsInfo">
                    <div class="tool_c">
                        <div class="btn-group">
                            <input type="radio" id="ra4" value="4" name="ra2" checked="checked" /><label for="ra4">	单位汇总</label><br />
                            <input type="radio" id="ra3" value="3" name="ra2" /><label for="ra3">零件汇总</label><br />
                        </div>
                        <div class="btn-group i4 i41">
                            &nbsp;台账日期<br />
                            <input id="txt_FAccountDate4" name="" placeholder="" type="text" class="form-control txt_FAccountDate required input-width-80" onfocus="WdatePicker({ dateFmt: 'yyyyMM', isShowToday: false, isShowClear: false });" />
                        </div>
                        <div class="btn-group  i4 i42">
                            <div class="input-width-185">
                                &nbsp;销售单位<br />
                                <select class="txt_FProductionTypeName" id="txtFHappenComName4" name="">
                                    <option value="">==请选择==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group  i4 i43">
                            &nbsp; 零件编号<br />
                            <input id="FProductionNO4" name="" placeholder="" type="text" class="form-control required input-width-105" />
                        </div>
                        <div class="btn-group i4 i44">
                            &nbsp;零件名称<br />
                            <input id="FProductionName4" name="" placeholder="" type="text" class="form-control required input-width-140" />
                        </div>
                        <div class="btn-group input-width-185  i4 i45">
                            <div>
                                &nbsp;制造单位<br />
                                <select class="txt_FProCompanyName" id="FProCompanyNO4" name="">
                                    <option value="">==请选择==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group  i4 i46">
                            <div class="input-width-105">
                                &nbsp;零件分类<br />
                                <select class="txt_FTypeName" id="FProductionTypeNO4" name="">
                                    <option value="" style="width: 80px;">==请选择==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group">
                            <a id="butnSearch4" class="btn btn-primary center-block"><span class="glyphicon glyphicon-search"></span>&nbsp; 查询</a>
                            <a class="btn btn-primary center-block" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span>&nbsp刷新</a>
                            <a class="btn btn-primary center-block" onclick="btn_Print()"><span class="glyphicon glyphicon-print"></span>&nbsp打印</a>
                            <a class="btn btn-primary center-block" onclick="btn_Excel()"><span class="glyphicon glyphicon-download"></span>&nbsp导出</a>
                        </div>
                    </div>
                    <div style="margin-top: 5px;">
                        <div class="i4 i47">
                            <table id="gridList4"></table>
                            <div id="gridPager4"></div>
                        </div>
                        <div class="i4 i48">
                            <table id="gridList41"></table>
                            <div id="gridPager41"></div>
                        </div>
                    </div>
                </div>
                <div class="tab-pane fade" id="InputInfoInfo">
                    <div class="tool_c">
                        <div class="btn-group">
                            <input type="radio" id="ra501" value="0" name="ra50" checked="checked" /><label for="ra501">自制</label><br />
                            <input type="radio" id="ra502" value="1" name="ra50" /><label for="ra502">	外协</label><br />
                        </div>
                        <div class="btn-group">
                            &nbsp;台账日期<br />
                            <input id="txt_FAccountDate5" name="" placeholder="" type="text" class="form-control txt_FAccountDate required input-width-80" onfocus="WdatePicker({ dateFmt: 'yyyyMM', isShowToday: false, isShowClear: false });" />
                        </div>
                        <div class="btn-group ">
                            <div class="input-width-185">
                                &nbsp;来料单位<br />
                                <select class="txt_FProCompanyName" id="txt_FProCompanyName5" name="">
                                    <option value="">==请选择==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group">
                            <a id="butnInStoreSearch" class="btn btn-primary center-block"><span class="glyphicon glyphicon-search"></span>&nbsp; 查询</a>
                            <a class="btn btn-primary center-block" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span>&nbsp刷新</a>
                            <a class="btn btn-primary center-block" onclick="btn_Print()"><span class="glyphicon glyphicon-print"></span>&nbsp打印</a>
                            <a class="btn btn-primary center-block" onclick="btn_Excel()"><span class="glyphicon glyphicon-download"></span>&nbsp导出</a>

                        </div>
                    </div>
                    <div style="margin-top: 5px;">
                        <table id="gridList5"></table>
                        <div id="gridPager5"></div>
                    </div>
                </div>
                <div class="tab-pane fade" id="OutInfoInfo">
                    <div class="tool_c">
                        <div class="btn-group">
                            <input type="radio" id="ra601" value="0" name="ra60" checked="checked" /><label for="ra601">自制</label><br />
                            <input type="radio" id="ra602" value="1" name="ra60" /><label for="ra602">外协</label><br />
                        </div>
                        <div class="btn-group">
                            &nbsp;台账日期<br />
                            <input id="txt_FAccountDate6" name="" placeholder="" type="text" class="form-control txt_FAccountDate required input-width-80" onfocus="WdatePicker({ dateFmt: 'yyyyMM', isShowToday: false, isShowClear: false });" />
                        </div>
                        <div class="btn-group ">
                            <div class=" input-width-185">
                                &nbsp;领料单位<br />
                                <select class="txt_FLCompanyName" id="txt_FLCompanyName6" name="">
                                    <option value="">==请选择==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group">
                            <a id="butnOutStoreSearch" class="btn btn-primary center-block" onclick="btn_Search()"><span class="glyphicon glyphicon-search"></span>&nbsp; 查询</a>
                            <a class="btn btn-primary center-block" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span>&nbsp刷新</a>
                            <a class="btn btn-primary center-block" onclick="btn_Print()"><span class="glyphicon glyphicon-print"></span>&nbsp打印</a>
                            <a class="btn btn-primary center-block" onclick="btn_Excel()"><span class="glyphicon glyphicon-download"></span>&nbsp导出</a>

                        </div>
                    </div>
                    <div style="margin-top: 5px;">
                        <table id="gridList6"></table>
                        <div id="gridPager6"></div>
                    </div>
                </div>
                <div id="InputAllInfoInfo" class="tab-pane fade">
                    <div class="tool_c">
                        <div class="btn-group">
                            <input type="radio" id="ra701" value="0" name="ra70" checked="checked" /><label for="ra701">自制</label><br />
                            <input type="radio" id="ra702" value="1" name="ra70" /><label for="ra702">外协</label><br />
                        </div>
                        <div class="btn-group input-width-80">
                            <div>&nbsp;入库日期</div>
                            <input id="startDate7" name="" placeholder="" type="text" class="form-control required startdate" style="height: 23px; margin: 3px 0 0 0;" onfocus="WdatePicker({ dateFmt: 'yyyyMMdd'});" />
                            到
                        <input id="endDate7" name="" placeholder="" type="text" class="form-control required enddate" style="height: 23px; margin: 3px 0 0 0;" onfocus="WdatePicker({ dateFmt: 'yyyyMMdd'});" />
                        </div>
                        <div class="btn-group ">
                            <div class="input-width-185">
                                &nbsp;来料单位<br />
                                <select class="txt_FProductionTypeName" id="txtFHappenComName7" name="">
                                    <option value="">==请选择==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group">
                            &nbsp;零件编号<br />
                            <input id="FProductionNO7" name="" placeholder="" type="text" class="form-control required input-width-105" />
                        </div>
                        <div class="btn-group">
                            &nbsp;零件名称<br />
                            <input id="FProductionName7" name="" placeholder="" type="text" class="form-control required input-width-140" />
                        </div>
                        <div class="btn-group ">
                            <div class="input-width-185">
                                &nbsp; 制造单位<br />
                                <select class="txt_FProCompanyName" id="FProCompanyNO7" name="">
                                    <option value="">==请选择==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group">
                            <div class="input-width-105">
                                &nbsp;零件分类<br />
                                <select class="txt_FTypeName" id="FProductionTypeNO7" name="">
                                    <option value="" style="width: 80px;">==请选择==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group">
                            <a id="btnSearch7" class="btn btn-primary center-block"><span class="glyphicon glyphicon-search"></span>&nbsp; 查询</a>
                            <a class="btn btn-primary center-block" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span>&nbsp刷新</a>
                            <a class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-download"></span>&nbsp计算</a>
                            <a class="btn btn-primary center-block" onclick="btn_Print()"><span class="glyphicon glyphicon-print"></span>&nbsp打印</a>
                            <a class="btn btn-primary center-block" onclick="btn_Excel()"><span class="glyphicon glyphicon-download"></span>&nbsp导出</a>
                        </div>
                    </div>
                    <div style="margin-top: 5px;">
                        <table id="gridList7"></table>
                        <div id="gridPager7"></div>
                    </div>
                </div>
                <div id="OutAllInfoInfo" class="tab-pane fade">
                    <div class="tool_c">
                        <div class="btn-group">
                            <input type="radio" id="ra801" value="0" name="ra80" checked="checked" /><label for="ra801">自制</label><br />
                            <input type="radio" id="ra802" value="1" name="ra80" /><label for="ra802">外协</label><br />
                        </div>
                        <div class="btn-group input-width-80">
                            <div>&nbsp;入库日期</div>
                            <input id="startDate8" name="" placeholder="" type="text" class="form-control required startdate" style="height: 23px; margin: 3px 0 0 0;" onfocus="WdatePicker({ dateFmt: 'yyyyMMdd'});" />
                            到
                        <input id="endDate8" name="" placeholder="" type="text" class="form-control required enddate" style="height: 23px; margin: 3px 0 0 0;" onfocus="WdatePicker({ dateFmt: 'yyyyMMdd'});" />
                        </div>
                        <div class="btn-group">
                            <div class="input-width-185">
                                &nbsp;出库单位<br />
                                <select class="txt_FProductionTypeName" id="txtFHappenComName8" name="">
                                    <option value="">==请选择==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group">
                            &nbsp;零件编号<br />
                            <input id="FProductionNO8" name="" placeholder="" type="text" class="form-control required input-width-105" />
                        </div>
                        <div class="btn-group">
                            &nbsp;零件名称<br />
                            <input id="FProductionName8" name="" placeholder="" type="text" class="form-control required input-width-140" />
                            &nbsp;
                        </div>
                        <div class="btn-group">
                            <div class="input-width-185">
                                &nbsp;制造单位<br />
                                <select class="txt_FProCompanyName" id="FProCompanyNO8" name="">
                                    <option value="">==请选择==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group">
                            <div class="input-width-105">
                                &nbsp;零件分类<br />
                                <select class="txt_FTypeName" id="FProductionTypeNO8" name="">
                                    <option value="" style="width: 80px;">==请选择==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group">
                            <a id="btnSearch8" class="btn btn-primary center-block"><span class="glyphicon glyphicon-search"></span>&nbsp; 查询</a>
                            <a class="btn btn-primary center-block" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span>&nbsp刷新</a>
                            <a class="btn btn-primary center-block" onclick="btn_Print()"><span class="glyphicon glyphicon-print"></span>&nbsp打印</a>
                            <a class="btn btn-primary center-block" onclick="btn_Excel()"><span class="glyphicon glyphicon-download"></span>&nbsp导出</a>
                        </div>
                    </div>
                    <div style="margin-top: 5px;">
                        <table id="gridList8"></table>
                        <div id="gridPager8"></div>
                    </div>
                </div>
                <div id="PriceInfoInfo" class="tab-pane fade">
                    <div class="tool_c">
                        <div class="btn-group">
                            <input type="radio" id="ra901" value="0" name="ra90" checked="checked" /><label for="ra901">自制</label><br />
                            <input type="radio" id="ra902" value="1" name="ra90" /><label for="ra902">外协</label><br />
                        </div>
                        <div class="btn-group">
                            &nbsp;台账日期<br />
                            <input id="txt_FAccountDate10" name="" placeholder="" type="text" class="form-control txt_FAccountDate required input-width-80" onfocus="WdatePicker({ dateFmt: 'yyyyMM', isShowToday: false, isShowClear: false });" />
                        </div>

                        <div class="btn-group">
                            &nbsp;零件编号<br />
                            <input id="FProductionNO10" name="" placeholder="" type="text" class="form-control required input-width-105" />
                        </div>
                        <div class="btn-group">
                            &nbsp;零件名称<br />
                            <input id="FProductionName10" name="" placeholder="" type="text" class="form-control required input-width-105" />
                        </div>
                        <div class="btn-group ">
                            <div class="input-width-185">
                                &nbsp;制造单位<br />
                                <select id="FProCompanyNO10" class="txt_FProductionTypeName" name="">
                                    <option value="">==请选择==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group ">
                            <div class="input-width-105">
                                &nbsp;零件分类<br />
                                <select id="FProductionTypeName10" class="txt_FTypeName" name="">
                                    <option value="">==请选择==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group">
                            <a id="butnSearch10" class="btn btn-primary center-block"><span class="glyphicon glyphicon-search"></span>&nbsp; 查询</a>
                            <a class="btn btn-primary center-block" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span>&nbsp刷新</a>
                            <a class="btn btn-primary center-block" onclick="btn_Print()"><span class="glyphicon glyphicon-print"></span>&nbsp打印</a>
                            <a class="btn btn-primary center-block" onclick="btn_Excel()"><span class="glyphicon glyphicon-download"></span>&nbsp导出</a>
                        </div>
                    </div>

                    <div style="margin-top: 5px;">
                        <table id="gridList10"></table>
                        <div id="gridPager10"></div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>














